package com.pmcc.core.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pmcc.core.enums.RoleType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.Date;
import java.util.List;

/**
 * Created by syk on 17/7/6.
 */
@Getter
@Setter
public class RoleVO{

    private String id;

    private String code;// 角色编号

    private String name;//角色名称

    private String state;//状态

    @Enumerated(EnumType.STRING)
    private RoleType type;//类型

    private String description;//描述

    private List<EmployeeVO> employeeVOList;

    private List<MenuVO> menuVOList;

    private String createId;//创建人

    private String createName;//创建人名称

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间

    private String modifyId;//修改人

    private String modifyName;//修改人名称

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;//修改时间

    private String remark;//备注信息
}
